<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一个electron app，哈哈哈，牛逼！！！</title>
</head>
<body>
    <h3>Hello World!</h3>

    <form action="/ju">
        <input type="text" name="name" value="ddd" id="one">
        <input type="text" name="password" id="two">
        <!-- <input type="submit"> -->
    </form>
    <script>
        window.onload = function() {
            const fs = require('fs');
            const txt = fs.readFileSync('./app.js', 'utf8');
            two.value = txt;
            const one = document.getElementById('one');
            const two = document.getElementById('two');
            two.value = txt;
            one.addEventListener('input', (e) => {
                two.value = e.target.value;
            });
            two.addEventListener('input', (e) => {
                one.value = e.target.value;
            });
        }

        

    </script>
</body>
</html>